var gulp = require('gulp');
var webserver = require('gulp-webserver');
gulp.task('webserver', function () {
    return gulp.src('./')
        .pipe(webserver({
            port: 80, //端口
            host: '127.20.0.235', //域名
            livereload: true, //实时刷新代码，不用f5刷新
            directoryListing: {
                path: './',
                enable: true
            },
            open: true //open the localhost server in the browser.
        }));
})
gulp.task('server', ['webserver'])